/*
** main.c for zappy in /home/guidet_m/TECK2/projets/zappy/server_zappy
** 
** Made by michael guidet
** Login   <guidet_m@epitech.net>
** 
** Started on  Mon Jul  4 15:33:02 2011 michael guidet
** Last update Mon Jul  4 15:42:36 2011 michael guidet
*/

#include "server.h"

int	main(int ac, char **av)
{
  t_env	e;

  parse_option(&e, ac, av, 1);
  e.map = generate_map(e.width, e.height, generate_ressources(&e));
  create_server(&e);
  loop(&e);
  return (EXIT_SUCCESS);
}
